package com.xneure.function.node;

import java.util.ArrayList;

import com.xneure.function.mode.Function;

@SuppressWarnings("rawtypes")
public class FunctionList extends ArrayList<Node> implements IFuncionList,Node{
	private static final long serialVersionUID = -8108347277236387244L;
	private RelationNode logicRelation;

	@Override
	public <T extends Node> void addFunctionNode(T funNode){
		add(funNode);
	}

	@SuppressWarnings({"unchecked"})
	@Override
	public <T extends Node> T getFunctionNode(int index){
		return (T)get(index);
	}

	public void destroy(){
	}

	@Override
	public Function getFunction(){
		return null;
	}

	@Override
	public Token getToken(){
		return null;
	}

	@Override
	public void setRelation(RelationNode lr) {
		this.logicRelation=lr;
	}

	public RelationNode getRelation() {
		return logicRelation;
	}

	
}
